package org.jeecg.modules.crm.defa.service;

import org.jeecg.modules.crm.defa.entity.DefaAaOrderProduct;
import org.jeecg.modules.crm.defa.entity.DefaAaOrderAddress;
import org.jeecg.modules.crm.defa.entity.DefaAaOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 水果订单表
 * @Author: jeecg-boot
 * @Date:   2024-07-31
 * @Version: V1.0
 */
public interface IDefaAaOrderService extends IService<DefaAaOrder> {

	/**
	 * 添加一对多
	 *
	 * @param defaAaOrder
	 * @param defaAaOrderProductList
	 * @param defaAaOrderAddressList
	 */
	public void saveMain(DefaAaOrder defaAaOrder,List<DefaAaOrderProduct> defaAaOrderProductList,List<DefaAaOrderAddress> defaAaOrderAddressList) ;
	
	/**
	 * 修改一对多
	 *
   * @param defaAaOrder
   * @param defaAaOrderProductList
   * @param defaAaOrderAddressList
	 */
	public void updateMain(DefaAaOrder defaAaOrder,List<DefaAaOrderProduct> defaAaOrderProductList,List<DefaAaOrderAddress> defaAaOrderAddressList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
